﻿using System.Collections.Generic;
using ControleRepresentante.Logic.Models;
using WebSite.ViewModels.Fields;

namespace WebSite.ViewModels.EditViewModels
{
    public class TransportadoraEditViewModel : DetailsHolderEditViewModel
    {
        public TransportadoraEditViewModel()
            : base("Transportadora")
        {
        }

        protected override IEnumerable<IField> GetGeralFields()
        {
            Transportadora transportadora = (Transportadora) Model;

            List<IField> result = new List<IField>
            {
                new TextBoxField("Nome", "nome", transportadora.Nome, true),
            };
            result.AddRange(base.GetGeralFields());
            return result;
        }
    }
}